import request from '@/utils/request'

export function accountList(query) {
  return request({
    url: '/binance/account/list',
    method: 'get',
    params: query
  })
}

// 查询交易配置列表
export function listConf(query) {
  return request({
    url: '/binance/conf/list',
    method: 'get',
    params: query
  })
}

// 查询交易配置详细
export function getConf(id) {
  return request({
    url: '/binance/conf/' + id,
    method: 'get'
  })
}

// 新增交易配置
export function addConf(data) {
  return request({
    url: '/binance/conf',
    method: 'post',
    data: data
  })
}

// 修改交易配置
export function updateConf(data) {
  return request({
    url: '/binance/conf',
    method: 'put',
    data: data
  })
}

// 删除交易配置
export function delConf(id) {
  return request({
    url: '/binance/conf/' + id,
    method: 'delete'
  })
}
